package com.example.sens.mapper;

import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.example.sens.entity.Conclusion;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ConclusionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Conclusion record);

    int insertSelective(Conclusion record);

    Conclusion selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Conclusion record);

    int updateByPrimaryKeyWithBLOBs(Conclusion record);

    int updateByPrimaryKey(Conclusion record);

    List<Conclusion> getByPage(Pagination pagination);

    List<Conclusion> findByQuizIdAndUserId(@Param("quizIdList") List<Long> quizIdList, @Param("userId") Long userId);

    List<Conclusion> findByQuizIds(@Param("quizIdList") List<Long> quizIds);
}